<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><link rel="stylesheet" type="text/css" href="style.css" /><script type="text/javascript" src="highlight.js"></script></head><body><pre><span id="local-6989586621679618943"><span id="local-6989586621679618944"><span id="local-6989586621679618945"></span></span></span><span class="hs-pragma">{-# LANGUAGE DeriveDataTypeable #-}</span><span>
</span><span id="line-2"></span><span class="hs-pragma">{-# LANGUAGE DeriveGeneric #-}</span><span>
</span><span id="line-3"></span><span class="hs-keyword">module</span><span> </span><span class="hs-identifier">Distribution.Simple.InstallDirs.Internal</span><span>
</span><span id="line-4"></span><span>  </span><span class="hs-special">(</span><span> </span><span class="annot"><a href="Distribution.Simple.InstallDirs.Internal.html#PathComponent"><span class="hs-identifier">PathComponent</span></a></span><span class="hs-special">(</span><span class="hs-glyph">..</span><span class="hs-special">)</span><span>
</span><span id="line-5"></span><span>  </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Distribution.Simple.InstallDirs.Internal.html#PathTemplateVariable"><span class="hs-identifier">PathTemplateVariable</span></a></span><span class="hs-special">(</span><span class="hs-glyph">..</span><span class="hs-special">)</span><span>
</span><span id="line-6"></span><span>  </span><span class="hs-special">)</span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-7"></span><span>
</span><span id="line-8"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../base/src/Prelude.html#"><span class="hs-identifier">Prelude</span></a></span><span> </span><span class="hs-special">(</span><span class="hs-special">)</span><span>
</span><span id="line-9"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Distribution.Compat.Prelude.html"><span class="hs-identifier">Distribution.Compat.Prelude</span></a></span><span>
</span><span id="line-10"></span><span>
</span><span id="line-11"></span><span id="local-6989586621679618941"><span id="local-6989586621679618942"></span></span><span class="hs-keyword">data</span><span> </span><span id="PathComponent"><span class="annot"><a href="Distribution.Simple.InstallDirs.Internal.html#PathComponent"><span class="hs-identifier hs-var">PathComponent</span></a></span></span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-12"></span><span>       </span><span id="Ordinary"><span class="annot"><a href="Distribution.Simple.InstallDirs.Internal.html#Ordinary"><span class="hs-identifier hs-var">Ordinary</span></a></span></span><span> </span><span class="annot"><a href="../../base/src/GHC.IO.html#FilePath"><span class="hs-identifier hs-type">FilePath</span></a></span><span>
</span><span id="line-13"></span><span>     </span><span class="hs-glyph">|</span><span> </span><span id="Variable"><span class="annot"><a href="Distribution.Simple.InstallDirs.Internal.html#Variable"><span class="hs-identifier hs-var">Variable</span></a></span></span><span> </span><span class="annot"><a href="Distribution.Simple.InstallDirs.Internal.html#PathTemplateVariable"><span class="hs-identifier hs-type">PathTemplateVariable</span></a></span><span>
</span><span id="line-14"></span><span>     </span><span class="hs-keyword">deriving</span><span> </span><span class="hs-special">(</span><span id="local-6989586621679618931"><span id="local-6989586621679618937"><span class="annot"><span class="annottext">PathComponent -&gt; PathComponent -&gt; Bool
(PathComponent -&gt; PathComponent -&gt; Bool)
-&gt; (PathComponent -&gt; PathComponent -&gt; Bool) -&gt; Eq PathComponent
forall a. (a -&gt; a -&gt; Bool) -&gt; (a -&gt; a -&gt; Bool) -&gt; Eq a
/= :: PathComponent -&gt; PathComponent -&gt; Bool
$c/= :: PathComponent -&gt; PathComponent -&gt; Bool
== :: PathComponent -&gt; PathComponent -&gt; Bool
$c== :: PathComponent -&gt; PathComponent -&gt; Bool
</span><span class="hs-identifier hs-var hs-var hs-var hs-var hs-var hs-var">Eq</span></span></span></span><span class="hs-special">,</span><span> </span><span id="local-6989586621679618903"><span id="local-6989586621679618905"><span id="local-6989586621679618908"><span id="local-6989586621679618911"><span id="local-6989586621679618914"><span id="local-6989586621679618919"><span id="local-6989586621679618925"><span class="annot"><span class="annottext">Eq PathComponent
Eq PathComponent
-&gt; (PathComponent -&gt; PathComponent -&gt; Ordering)
-&gt; (PathComponent -&gt; PathComponent -&gt; Bool)
-&gt; (PathComponent -&gt; PathComponent -&gt; Bool)
-&gt; (PathComponent -&gt; PathComponent -&gt; Bool)
-&gt; (PathComponent -&gt; PathComponent -&gt; Bool)
-&gt; (PathComponent -&gt; PathComponent -&gt; PathComponent)
-&gt; (PathComponent -&gt; PathComponent -&gt; PathComponent)
-&gt; Ord PathComponent
PathComponent -&gt; PathComponent -&gt; Bool
PathComponent -&gt; PathComponent -&gt; Ordering
PathComponent -&gt; PathComponent -&gt; PathComponent
forall a.
Eq a
-&gt; (a -&gt; a -&gt; Ordering)
-&gt; (a -&gt; a -&gt; Bool)
-&gt; (a -&gt; a -&gt; Bool)
-&gt; (a -&gt; a -&gt; Bool)
-&gt; (a -&gt; a -&gt; Bool)
-&gt; (a -&gt; a -&gt; a)
-&gt; (a -&gt; a -&gt; a)
-&gt; Ord a
min :: PathComponent -&gt; PathComponent -&gt; PathComponent
$cmin :: PathComponent -&gt; PathComponent -&gt; PathComponent
max :: PathComponent -&gt; PathComponent -&gt; PathComponent
$cmax :: PathComponent -&gt; PathComponent -&gt; PathComponent
&gt;= :: PathComponent -&gt; PathComponent -&gt; Bool
$c&gt;= :: PathComponent -&gt; PathComponent -&gt; Bool
&gt; :: PathComponent -&gt; PathComponent -&gt; Bool
$c&gt; :: PathComponent -&gt; PathComponent -&gt; Bool
&lt;= :: PathComponent -&gt; PathComponent -&gt; Bool
$c&lt;= :: PathComponent -&gt; PathComponent -&gt; Bool
&lt; :: PathComponent -&gt; PathComponent -&gt; Bool
$c&lt; :: PathComponent -&gt; PathComponent -&gt; Bool
compare :: PathComponent -&gt; PathComponent -&gt; Ordering
$ccompare :: PathComponent -&gt; PathComponent -&gt; Ordering
</span><span class="hs-identifier hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var">Ord</span></span></span></span></span></span></span></span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">(forall x. PathComponent -&gt; Rep PathComponent x)
-&gt; (forall x. Rep PathComponent x -&gt; PathComponent)
-&gt; Generic PathComponent
forall x. Rep PathComponent x -&gt; PathComponent
forall x. PathComponent -&gt; Rep PathComponent x
forall a.
(forall x. a -&gt; Rep a x) -&gt; (forall x. Rep a x -&gt; a) -&gt; Generic a
$cto :: forall x. Rep PathComponent x -&gt; PathComponent
$cfrom :: forall x. PathComponent -&gt; Rep PathComponent x
</span><a href="../../base/src/GHC.Generics.html#Generic"><span class="hs-identifier hs-var hs-var hs-var hs-var">Generic</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="../../base/src/Data.Typeable.Internal.html#Typeable"><span class="hs-identifier hs-type">Typeable</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-15"></span><span>
</span><span id="line-16"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679618892"><span id="local-6989586621679618894"><span id="local-6989586621679618896"><span class="annot"><a href="../../binary/src/Data.Binary.Class.html#Binary"><span class="hs-identifier hs-type">Binary</span></a></span><span> </span><span class="annot"><a href="Distribution.Simple.InstallDirs.Internal.html#PathComponent"><span class="hs-identifier hs-type">PathComponent</span></a></span></span></span></span><span>
</span><span id="line-17"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679618885"><span id="local-6989586621679618887"><span class="annot"><a href="Distribution.Utils.Structured.html#Structured"><span class="hs-identifier hs-type">Structured</span></a></span><span> </span><span class="annot"><a href="Distribution.Simple.InstallDirs.Internal.html#PathComponent"><span class="hs-identifier hs-type">PathComponent</span></a></span></span></span><span>
</span><span id="line-18"></span><span>
</span><span id="line-19"></span><span id="local-6989586621679618882"><span id="local-6989586621679618883"></span></span><span class="hs-keyword">data</span><span> </span><span id="PathTemplateVariable"><span class="annot"><a href="Distribution.Simple.InstallDirs.Internal.html#PathTemplateVariable"><span class="hs-identifier hs-var">PathTemplateVariable</span></a></span></span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-20"></span><span>       </span><span id="PrefixVar"><span class="annot"><a href="Distribution.Simple.InstallDirs.Internal.html#PrefixVar"><span class="hs-identifier hs-var">PrefixVar</span></a></span></span><span>     </span><span class="hs-comment">-- ^ The @$prefix@ path variable</span><span>
</span><span id="line-21"></span><span>     </span><span class="hs-glyph">|</span><span> </span><span id="BindirVar"><span class="annot"><a href="Distribution.Simple.InstallDirs.Internal.html#BindirVar"><span class="hs-identifier hs-var">BindirVar</span></a></span></span><span>     </span><span class="hs-comment">-- ^ The @$bindir@ path variable</span><span>
</span><span id="line-22"></span><span>     </span><span class="hs-glyph">|</span><span> </span><span id="LibdirVar"><span class="annot"><a href="Distribution.Simple.InstallDirs.Internal.html#LibdirVar"><span class="hs-identifier hs-var">LibdirVar</span></a></span></span><span>     </span><span class="hs-comment">-- ^ The @$libdir@ path variable</span><span>
</span><span id="line-23"></span><span>     </span><span class="hs-glyph">|</span><span> </span><span id="LibsubdirVar"><span class="annot"><a href="Distribution.Simple.InstallDirs.Internal.html#LibsubdirVar"><span class="hs-identifier hs-var">LibsubdirVar</span></a></span></span><span>  </span><span class="hs-comment">-- ^ The @$libsubdir@ path variable</span><span>
</span><span id="line-24"></span><span>     </span><span class="hs-glyph">|</span><span> </span><span id="DynlibdirVar"><span class="annot"><a href="Distribution.Simple.InstallDirs.Internal.html#DynlibdirVar"><span class="hs-identifier hs-var">DynlibdirVar</span></a></span></span><span>  </span><span class="hs-comment">-- ^ The @$dynlibdir@ path variable</span><span>
</span><span id="line-25"></span><span>     </span><span class="hs-glyph">|</span><span> </span><span id="DatadirVar"><span class="annot"><a href="Distribution.Simple.InstallDirs.Internal.html#DatadirVar"><span class="hs-identifier hs-var">DatadirVar</span></a></span></span><span>    </span><span class="hs-comment">-- ^ The @$datadir@ path variable</span><span>
</span><span id="line-26"></span><span>     </span><span class="hs-glyph">|</span><span> </span><span id="DatasubdirVar"><span class="annot"><a href="Distribution.Simple.InstallDirs.Internal.html#DatasubdirVar"><span class="hs-identifier hs-var">DatasubdirVar</span></a></span></span><span> </span><span class="hs-comment">-- ^ The @$datasubdir@ path variable</span><span>
</span><span id="line-27"></span><span>     </span><span class="hs-glyph">|</span><span> </span><span id="DocdirVar"><span class="annot"><a href="Distribution.Simple.InstallDirs.Internal.html#DocdirVar"><span class="hs-identifier hs-var">DocdirVar</span></a></span></span><span>     </span><span class="hs-comment">-- ^ The @$docdir@ path variable</span><span>
</span><span id="line-28"></span><span>     </span><span class="hs-glyph">|</span><span> </span><span id="HtmldirVar"><span class="annot"><a href="Distribution.Simple.InstallDirs.Internal.html#HtmldirVar"><span class="hs-identifier hs-var">HtmldirVar</span></a></span></span><span>    </span><span class="hs-comment">-- ^ The @$htmldir@ path variable</span><span>
</span><span id="line-29"></span><span>     </span><span class="hs-glyph">|</span><span> </span><span id="PkgNameVar"><span class="annot"><a href="Distribution.Simple.InstallDirs.Internal.html#PkgNameVar"><span class="hs-identifier hs-var">PkgNameVar</span></a></span></span><span>    </span><span class="hs-comment">-- ^ The @$pkg@ package name path variable</span><span>
</span><span id="line-30"></span><span>     </span><span class="hs-glyph">|</span><span> </span><span id="PkgVerVar"><span class="annot"><a href="Distribution.Simple.InstallDirs.Internal.html#PkgVerVar"><span class="hs-identifier hs-var">PkgVerVar</span></a></span></span><span>     </span><span class="hs-comment">-- ^ The @$version@ package version path variable</span><span>
</span><span id="line-31"></span><span>     </span><span class="hs-glyph">|</span><span> </span><span id="PkgIdVar"><span class="annot"><a href="Distribution.Simple.InstallDirs.Internal.html#PkgIdVar"><span class="hs-identifier hs-var">PkgIdVar</span></a></span></span><span>      </span><span class="hs-comment">-- ^ The @$pkgid@ package Id path variable, eg @foo-1.0@</span><span>
</span><span id="line-32"></span><span>     </span><span class="hs-glyph">|</span><span> </span><span id="LibNameVar"><span class="annot"><a href="Distribution.Simple.InstallDirs.Internal.html#LibNameVar"><span class="hs-identifier hs-var">LibNameVar</span></a></span></span><span>    </span><span class="hs-comment">-- ^ The @$libname@ path variable</span><span>
</span><span id="line-33"></span><span>     </span><span class="hs-glyph">|</span><span> </span><span id="CompilerVar"><span class="annot"><a href="Distribution.Simple.InstallDirs.Internal.html#CompilerVar"><span class="hs-identifier hs-var">CompilerVar</span></a></span></span><span>   </span><span class="hs-comment">-- ^ The compiler name and version, eg @ghc-6.6.1@</span><span>
</span><span id="line-34"></span><span>     </span><span class="hs-glyph">|</span><span> </span><span id="OSVar"><span class="annot"><a href="Distribution.Simple.InstallDirs.Internal.html#OSVar"><span class="hs-identifier hs-var">OSVar</span></a></span></span><span>         </span><span class="hs-comment">-- ^ The operating system name, eg @windows@ or @linux@</span><span>
</span><span id="line-35"></span><span>     </span><span class="hs-glyph">|</span><span> </span><span id="ArchVar"><span class="annot"><a href="Distribution.Simple.InstallDirs.Internal.html#ArchVar"><span class="hs-identifier hs-var">ArchVar</span></a></span></span><span>       </span><span class="hs-comment">-- ^ The CPU architecture name, eg @i386@ or @x86_64@</span><span>
</span><span id="line-36"></span><span>     </span><span class="hs-glyph">|</span><span> </span><span id="AbiVar"><span class="annot"><a href="Distribution.Simple.InstallDirs.Internal.html#AbiVar"><span class="hs-identifier hs-var">AbiVar</span></a></span></span><span>        </span><span class="hs-comment">-- ^ The compiler's ABI identifier,</span><span>
</span><span id="line-37"></span><span>                     </span><span class="hs-comment">---  $arch-$os-$compiler-$abitag</span><span>
</span><span id="line-38"></span><span>     </span><span class="hs-glyph">|</span><span> </span><span id="AbiTagVar"><span class="annot"><a href="Distribution.Simple.InstallDirs.Internal.html#AbiTagVar"><span class="hs-identifier hs-var">AbiTagVar</span></a></span></span><span>     </span><span class="hs-comment">-- ^ The optional ABI tag for the compiler</span><span>
</span><span id="line-39"></span><span>     </span><span class="hs-glyph">|</span><span> </span><span id="ExecutableNameVar"><span class="annot"><a href="Distribution.Simple.InstallDirs.Internal.html#ExecutableNameVar"><span class="hs-identifier hs-var">ExecutableNameVar</span></a></span></span><span> </span><span class="hs-comment">-- ^ The executable name; used in shell wrappers</span><span>
</span><span id="line-40"></span><span>     </span><span class="hs-glyph">|</span><span> </span><span id="TestSuiteNameVar"><span class="annot"><a href="Distribution.Simple.InstallDirs.Internal.html#TestSuiteNameVar"><span class="hs-identifier hs-var">TestSuiteNameVar</span></a></span></span><span>   </span><span class="hs-comment">-- ^ The name of the test suite being run</span><span>
</span><span id="line-41"></span><span>     </span><span class="hs-glyph">|</span><span> </span><span id="TestSuiteResultVar"><span class="annot"><a href="Distribution.Simple.InstallDirs.Internal.html#TestSuiteResultVar"><span class="hs-identifier hs-var">TestSuiteResultVar</span></a></span></span><span> </span><span class="hs-comment">-- ^ The result of the test suite being run, eg</span><span>
</span><span id="line-42"></span><span>                          </span><span class="hs-comment">-- @pass@, @fail@, or @error@.</span><span>
</span><span id="line-43"></span><span>     </span><span class="hs-glyph">|</span><span> </span><span id="BenchmarkNameVar"><span class="annot"><a href="Distribution.Simple.InstallDirs.Internal.html#BenchmarkNameVar"><span class="hs-identifier hs-var">BenchmarkNameVar</span></a></span></span><span>   </span><span class="hs-comment">-- ^ The name of the benchmark being run</span><span>
</span><span id="line-44"></span><span>  </span><span class="hs-keyword">deriving</span><span> </span><span class="hs-special">(</span><span id="local-6989586621679618856"><span id="local-6989586621679618858"><span class="annot"><span class="annottext">PathTemplateVariable -&gt; PathTemplateVariable -&gt; Bool
(PathTemplateVariable -&gt; PathTemplateVariable -&gt; Bool)
-&gt; (PathTemplateVariable -&gt; PathTemplateVariable -&gt; Bool)
-&gt; Eq PathTemplateVariable
forall a. (a -&gt; a -&gt; Bool) -&gt; (a -&gt; a -&gt; Bool) -&gt; Eq a
/= :: PathTemplateVariable -&gt; PathTemplateVariable -&gt; Bool
$c/= :: PathTemplateVariable -&gt; PathTemplateVariable -&gt; Bool
== :: PathTemplateVariable -&gt; PathTemplateVariable -&gt; Bool
$c== :: PathTemplateVariable -&gt; PathTemplateVariable -&gt; Bool
</span><span class="hs-identifier hs-var hs-var hs-var hs-var hs-var hs-var">Eq</span></span></span></span><span class="hs-special">,</span><span> </span><span id="local-6989586621679618837"><span id="local-6989586621679618839"><span id="local-6989586621679618842"><span id="local-6989586621679618845"><span id="local-6989586621679618848"><span id="local-6989586621679618850"><span id="local-6989586621679618852"><span class="annot"><span class="annottext">Eq PathTemplateVariable
Eq PathTemplateVariable
-&gt; (PathTemplateVariable -&gt; PathTemplateVariable -&gt; Ordering)
-&gt; (PathTemplateVariable -&gt; PathTemplateVariable -&gt; Bool)
-&gt; (PathTemplateVariable -&gt; PathTemplateVariable -&gt; Bool)
-&gt; (PathTemplateVariable -&gt; PathTemplateVariable -&gt; Bool)
-&gt; (PathTemplateVariable -&gt; PathTemplateVariable -&gt; Bool)
-&gt; (PathTemplateVariable
    -&gt; PathTemplateVariable -&gt; PathTemplateVariable)
-&gt; (PathTemplateVariable
    -&gt; PathTemplateVariable -&gt; PathTemplateVariable)
-&gt; Ord PathTemplateVariable
PathTemplateVariable -&gt; PathTemplateVariable -&gt; Bool
PathTemplateVariable -&gt; PathTemplateVariable -&gt; Ordering
PathTemplateVariable
-&gt; PathTemplateVariable -&gt; PathTemplateVariable
forall a.
Eq a
-&gt; (a -&gt; a -&gt; Ordering)
-&gt; (a -&gt; a -&gt; Bool)
-&gt; (a -&gt; a -&gt; Bool)
-&gt; (a -&gt; a -&gt; Bool)
-&gt; (a -&gt; a -&gt; Bool)
-&gt; (a -&gt; a -&gt; a)
-&gt; (a -&gt; a -&gt; a)
-&gt; Ord a
min :: PathTemplateVariable
-&gt; PathTemplateVariable -&gt; PathTemplateVariable
$cmin :: PathTemplateVariable
-&gt; PathTemplateVariable -&gt; PathTemplateVariable
max :: PathTemplateVariable
-&gt; PathTemplateVariable -&gt; PathTemplateVariable
$cmax :: PathTemplateVariable
-&gt; PathTemplateVariable -&gt; PathTemplateVariable
&gt;= :: PathTemplateVariable -&gt; PathTemplateVariable -&gt; Bool
$c&gt;= :: PathTemplateVariable -&gt; PathTemplateVariable -&gt; Bool
&gt; :: PathTemplateVariable -&gt; PathTemplateVariable -&gt; Bool
$c&gt; :: PathTemplateVariable -&gt; PathTemplateVariable -&gt; Bool
&lt;= :: PathTemplateVariable -&gt; PathTemplateVariable -&gt; Bool
$c&lt;= :: PathTemplateVariable -&gt; PathTemplateVariable -&gt; Bool
&lt; :: PathTemplateVariable -&gt; PathTemplateVariable -&gt; Bool
$c&lt; :: PathTemplateVariable -&gt; PathTemplateVariable -&gt; Bool
compare :: PathTemplateVariable -&gt; PathTemplateVariable -&gt; Ordering
$ccompare :: PathTemplateVariable -&gt; PathTemplateVariable -&gt; Ordering
</span><span class="hs-identifier hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var">Ord</span></span></span></span></span></span></span></span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">(forall x. PathTemplateVariable -&gt; Rep PathTemplateVariable x)
-&gt; (forall x. Rep PathTemplateVariable x -&gt; PathTemplateVariable)
-&gt; Generic PathTemplateVariable
forall x. Rep PathTemplateVariable x -&gt; PathTemplateVariable
forall x. PathTemplateVariable -&gt; Rep PathTemplateVariable x
forall a.
(forall x. a -&gt; Rep a x) -&gt; (forall x. Rep a x -&gt; a) -&gt; Generic a
$cto :: forall x. Rep PathTemplateVariable x -&gt; PathTemplateVariable
$cfrom :: forall x. PathTemplateVariable -&gt; Rep PathTemplateVariable x
</span><a href="../../base/src/GHC.Generics.html#Generic"><span class="hs-identifier hs-var hs-var hs-var hs-var">Generic</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="../../base/src/Data.Typeable.Internal.html#Typeable"><span class="hs-identifier hs-type">Typeable</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-45"></span><span>
</span><span id="line-46"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679618829"><span id="local-6989586621679618831"><span id="local-6989586621679618833"><span class="annot"><a href="../../binary/src/Data.Binary.Class.html#Binary"><span class="hs-identifier hs-type">Binary</span></a></span><span> </span><span class="annot"><a href="Distribution.Simple.InstallDirs.Internal.html#PathTemplateVariable"><span class="hs-identifier hs-type">PathTemplateVariable</span></a></span></span></span></span><span>
</span><span id="line-47"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679618823"><span id="local-6989586621679618825"><span class="annot"><a href="Distribution.Utils.Structured.html#Structured"><span class="hs-identifier hs-type">Structured</span></a></span><span> </span><span class="annot"><a href="Distribution.Simple.InstallDirs.Internal.html#PathTemplateVariable"><span class="hs-identifier hs-type">PathTemplateVariable</span></a></span></span></span><span>
</span><span id="line-48"></span><span>
</span><span id="line-49"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679618818"><span id="local-6989586621679618821"><span class="annot"><a href="../../base/src/GHC.Show.html#Show"><span class="hs-identifier hs-type">Show</span></a></span><span> </span><span class="annot"><a href="Distribution.Simple.InstallDirs.Internal.html#PathTemplateVariable"><span class="hs-identifier hs-type">PathTemplateVariable</span></a></span></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-50"></span><span>  </span><span id="local-6989586621679618816"><span class="annot"><span class="annottext">show :: PathTemplateVariable -&gt; FilePath
</span><a href="../../base/src/GHC.Show.html#show"><span class="hs-identifier hs-var hs-var hs-var hs-var">show</span></a></span></span><span> </span><span class="annot"><span class="annottext">PathTemplateVariable
</span><a href="Distribution.Simple.InstallDirs.Internal.html#PrefixVar"><span class="hs-identifier hs-var">PrefixVar</span></a></span><span>     </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">FilePath
</span><span class="hs-string">&quot;prefix&quot;</span></span><span>
</span><span id="line-51"></span><span>  </span><span class="annot"><a href="../../base/src/GHC.Show.html#show"><span class="hs-identifier hs-var">show</span></a></span><span> </span><span class="annot"><span class="annottext">PathTemplateVariable
</span><a href="Distribution.Simple.InstallDirs.Internal.html#LibNameVar"><span class="hs-identifier hs-var">LibNameVar</span></a></span><span>    </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">FilePath
</span><span class="hs-string">&quot;libname&quot;</span></span><span>
</span><span id="line-52"></span><span>  </span><span class="annot"><a href="../../base/src/GHC.Show.html#show"><span class="hs-identifier hs-var">show</span></a></span><span> </span><span class="annot"><span class="annottext">PathTemplateVariable
</span><a href="Distribution.Simple.InstallDirs.Internal.html#BindirVar"><span class="hs-identifier hs-var">BindirVar</span></a></span><span>     </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">FilePath
</span><span class="hs-string">&quot;bindir&quot;</span></span><span>
</span><span id="line-53"></span><span>  </span><span class="annot"><a href="../../base/src/GHC.Show.html#show"><span class="hs-identifier hs-var">show</span></a></span><span> </span><span class="annot"><span class="annottext">PathTemplateVariable
</span><a href="Distribution.Simple.InstallDirs.Internal.html#LibdirVar"><span class="hs-identifier hs-var">LibdirVar</span></a></span><span>     </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">FilePath
</span><span class="hs-string">&quot;libdir&quot;</span></span><span>
</span><span id="line-54"></span><span>  </span><span class="annot"><a href="../../base/src/GHC.Show.html#show"><span class="hs-identifier hs-var">show</span></a></span><span> </span><span class="annot"><span class="annottext">PathTemplateVariable
</span><a href="Distribution.Simple.InstallDirs.Internal.html#LibsubdirVar"><span class="hs-identifier hs-var">LibsubdirVar</span></a></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">FilePath
</span><span class="hs-string">&quot;libsubdir&quot;</span></span><span>
</span><span id="line-55"></span><span>  </span><span class="annot"><a href="../../base/src/GHC.Show.html#show"><span class="hs-identifier hs-var">show</span></a></span><span> </span><span class="annot"><span class="annottext">PathTemplateVariable
</span><a href="Distribution.Simple.InstallDirs.Internal.html#DynlibdirVar"><span class="hs-identifier hs-var">DynlibdirVar</span></a></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">FilePath
</span><span class="hs-string">&quot;dynlibdir&quot;</span></span><span>
</span><span id="line-56"></span><span>  </span><span class="annot"><a href="../../base/src/GHC.Show.html#show"><span class="hs-identifier hs-var">show</span></a></span><span> </span><span class="annot"><span class="annottext">PathTemplateVariable
</span><a href="Distribution.Simple.InstallDirs.Internal.html#DatadirVar"><span class="hs-identifier hs-var">DatadirVar</span></a></span><span>    </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">FilePath
</span><span class="hs-string">&quot;datadir&quot;</span></span><span>
</span><span id="line-57"></span><span>  </span><span class="annot"><a href="../../base/src/GHC.Show.html#show"><span class="hs-identifier hs-var">show</span></a></span><span> </span><span class="annot"><span class="annottext">PathTemplateVariable
</span><a href="Distribution.Simple.InstallDirs.Internal.html#DatasubdirVar"><span class="hs-identifier hs-var">DatasubdirVar</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">FilePath
</span><span class="hs-string">&quot;datasubdir&quot;</span></span><span>
</span><span id="line-58"></span><span>  </span><span class="annot"><a href="../../base/src/GHC.Show.html#show"><span class="hs-identifier hs-var">show</span></a></span><span> </span><span class="annot"><span class="annottext">PathTemplateVariable
</span><a href="Distribution.Simple.InstallDirs.Internal.html#DocdirVar"><span class="hs-identifier hs-var">DocdirVar</span></a></span><span>     </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">FilePath
</span><span class="hs-string">&quot;docdir&quot;</span></span><span>
</span><span id="line-59"></span><span>  </span><span class="annot"><a href="../../base/src/GHC.Show.html#show"><span class="hs-identifier hs-var">show</span></a></span><span> </span><span class="annot"><span class="annottext">PathTemplateVariable
</span><a href="Distribution.Simple.InstallDirs.Internal.html#HtmldirVar"><span class="hs-identifier hs-var">HtmldirVar</span></a></span><span>    </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">FilePath
</span><span class="hs-string">&quot;htmldir&quot;</span></span><span>
</span><span id="line-60"></span><span>  </span><span class="annot"><a href="../../base/src/GHC.Show.html#show"><span class="hs-identifier hs-var">show</span></a></span><span> </span><span class="annot"><span class="annottext">PathTemplateVariable
</span><a href="Distribution.Simple.InstallDirs.Internal.html#PkgNameVar"><span class="hs-identifier hs-var">PkgNameVar</span></a></span><span>    </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">FilePath
</span><span class="hs-string">&quot;pkg&quot;</span></span><span>
</span><span id="line-61"></span><span>  </span><span class="annot"><a href="../../base/src/GHC.Show.html#show"><span class="hs-identifier hs-var">show</span></a></span><span> </span><span class="annot"><span class="annottext">PathTemplateVariable
</span><a href="Distribution.Simple.InstallDirs.Internal.html#PkgVerVar"><span class="hs-identifier hs-var">PkgVerVar</span></a></span><span>     </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">FilePath
</span><span class="hs-string">&quot;version&quot;</span></span><span>
</span><span id="line-62"></span><span>  </span><span class="annot"><a href="../../base/src/GHC.Show.html#show"><span class="hs-identifier hs-var">show</span></a></span><span> </span><span class="annot"><span class="annottext">PathTemplateVariable
</span><a href="Distribution.Simple.InstallDirs.Internal.html#PkgIdVar"><span class="hs-identifier hs-var">PkgIdVar</span></a></span><span>      </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">FilePath
</span><span class="hs-string">&quot;pkgid&quot;</span></span><span>
</span><span id="line-63"></span><span>  </span><span class="annot"><a href="../../base/src/GHC.Show.html#show"><span class="hs-identifier hs-var">show</span></a></span><span> </span><span class="annot"><span class="annottext">PathTemplateVariable
</span><a href="Distribution.Simple.InstallDirs.Internal.html#CompilerVar"><span class="hs-identifier hs-var">CompilerVar</span></a></span><span>   </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">FilePath
</span><span class="hs-string">&quot;compiler&quot;</span></span><span>
</span><span id="line-64"></span><span>  </span><span class="annot"><a href="../../base/src/GHC.Show.html#show"><span class="hs-identifier hs-var">show</span></a></span><span> </span><span class="annot"><span class="annottext">PathTemplateVariable
</span><a href="Distribution.Simple.InstallDirs.Internal.html#OSVar"><span class="hs-identifier hs-var">OSVar</span></a></span><span>         </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">FilePath
</span><span class="hs-string">&quot;os&quot;</span></span><span>
</span><span id="line-65"></span><span>  </span><span class="annot"><a href="../../base/src/GHC.Show.html#show"><span class="hs-identifier hs-var">show</span></a></span><span> </span><span class="annot"><span class="annottext">PathTemplateVariable
</span><a href="Distribution.Simple.InstallDirs.Internal.html#ArchVar"><span class="hs-identifier hs-var">ArchVar</span></a></span><span>       </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">FilePath
</span><span class="hs-string">&quot;arch&quot;</span></span><span>
</span><span id="line-66"></span><span>  </span><span class="annot"><a href="../../base/src/GHC.Show.html#show"><span class="hs-identifier hs-var">show</span></a></span><span> </span><span class="annot"><span class="annottext">PathTemplateVariable
</span><a href="Distribution.Simple.InstallDirs.Internal.html#AbiTagVar"><span class="hs-identifier hs-var">AbiTagVar</span></a></span><span>     </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">FilePath
</span><span class="hs-string">&quot;abitag&quot;</span></span><span>
</span><span id="line-67"></span><span>  </span><span class="annot"><a href="../../base/src/GHC.Show.html#show"><span class="hs-identifier hs-var">show</span></a></span><span> </span><span class="annot"><span class="annottext">PathTemplateVariable
</span><a href="Distribution.Simple.InstallDirs.Internal.html#AbiVar"><span class="hs-identifier hs-var">AbiVar</span></a></span><span>        </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">FilePath
</span><span class="hs-string">&quot;abi&quot;</span></span><span>
</span><span id="line-68"></span><span>  </span><span class="annot"><a href="../../base/src/GHC.Show.html#show"><span class="hs-identifier hs-var">show</span></a></span><span> </span><span class="annot"><span class="annottext">PathTemplateVariable
</span><a href="Distribution.Simple.InstallDirs.Internal.html#ExecutableNameVar"><span class="hs-identifier hs-var">ExecutableNameVar</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">FilePath
</span><span class="hs-string">&quot;executablename&quot;</span></span><span>
</span><span id="line-69"></span><span>  </span><span class="annot"><a href="../../base/src/GHC.Show.html#show"><span class="hs-identifier hs-var">show</span></a></span><span> </span><span class="annot"><span class="annottext">PathTemplateVariable
</span><a href="Distribution.Simple.InstallDirs.Internal.html#TestSuiteNameVar"><span class="hs-identifier hs-var">TestSuiteNameVar</span></a></span><span>   </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">FilePath
</span><span class="hs-string">&quot;test-suite&quot;</span></span><span>
</span><span id="line-70"></span><span>  </span><span class="annot"><a href="../../base/src/GHC.Show.html#show"><span class="hs-identifier hs-var">show</span></a></span><span> </span><span class="annot"><span class="annottext">PathTemplateVariable
</span><a href="Distribution.Simple.InstallDirs.Internal.html#TestSuiteResultVar"><span class="hs-identifier hs-var">TestSuiteResultVar</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">FilePath
</span><span class="hs-string">&quot;result&quot;</span></span><span>
</span><span id="line-71"></span><span>  </span><span class="annot"><a href="../../base/src/GHC.Show.html#show"><span class="hs-identifier hs-var">show</span></a></span><span> </span><span class="annot"><span class="annottext">PathTemplateVariable
</span><a href="Distribution.Simple.InstallDirs.Internal.html#BenchmarkNameVar"><span class="hs-identifier hs-var">BenchmarkNameVar</span></a></span><span>   </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">FilePath
</span><span class="hs-string">&quot;benchmark&quot;</span></span><span>
</span><span id="line-72"></span><span>
</span><span id="line-73"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679618808"><span id="local-6989586621679618810"><span id="local-6989586621679618812"><span class="annot"><a href="../../base/src/GHC.Read.html#Read"><span class="hs-identifier hs-type">Read</span></a></span><span> </span><span class="annot"><a href="Distribution.Simple.InstallDirs.Internal.html#PathTemplateVariable"><span class="hs-identifier hs-type">PathTemplateVariable</span></a></span></span></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-74"></span><span>  </span><span id="local-6989586621679618803"><span class="annot"><span class="annottext">readsPrec :: Int -&gt; ReadS PathTemplateVariable
</span><a href="../../base/src/GHC.Read.html#readsPrec"><span class="hs-identifier hs-var hs-var hs-var hs-var">readsPrec</span></a></span></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-identifier">_</span></span><span> </span><span id="local-6989586621679618801"><span class="annot"><span class="annottext">FilePath
</span><a href="#local-6989586621679618801"><span class="hs-identifier hs-var">s</span></a></span></span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-75"></span><span>    </span><span class="annot"><span class="annottext">Int
-&gt; [(PathTemplateVariable, FilePath)]
-&gt; [(PathTemplateVariable, FilePath)]
forall a. Int -&gt; [a] -&gt; [a]
</span><a href="../../base/src/GHC.List.html#take"><span class="hs-identifier hs-var">take</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">1</span></span><span>
</span><span id="line-76"></span><span>    </span><span class="hs-special">[</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">PathTemplateVariable
</span><a href="#local-6989586621679618799"><span class="hs-identifier hs-var">var</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">Int -&gt; ShowS
forall a. Int -&gt; [a] -&gt; [a]
</span><a href="../../base/src/GHC.List.html#drop"><span class="hs-identifier hs-var">drop</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">FilePath -&gt; Int
forall (t :: * -&gt; *) a. Foldable t =&gt; t a -&gt; Int
</span><a href="../../base/src/Data.Foldable.html#length"><span class="hs-identifier hs-var">length</span></a></span><span> </span><span class="annot"><span class="annottext">FilePath
</span><a href="#local-6989586621679618796"><span class="hs-identifier hs-var">varStr</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">FilePath
</span><a href="#local-6989586621679618801"><span class="hs-identifier hs-var">s</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-77"></span><span>    </span><span class="hs-glyph">|</span><span> </span><span class="hs-special">(</span><span id="local-6989586621679618796"><span class="annot"><span class="annottext">FilePath
</span><a href="#local-6989586621679618796"><span class="hs-identifier hs-var">varStr</span></a></span></span><span class="hs-special">,</span><span> </span><span id="local-6989586621679618799"><span class="annot"><span class="annottext">PathTemplateVariable
</span><a href="#local-6989586621679618799"><span class="hs-identifier hs-var">var</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">[(FilePath, PathTemplateVariable)]
</span><a href="#local-6989586621679618795"><span class="hs-identifier hs-var">vars</span></a></span><span>
</span><span id="line-78"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">FilePath
</span><a href="#local-6989586621679618796"><span class="hs-identifier hs-var">varStr</span></a></span><span> </span><span class="annot"><span class="annottext">FilePath -&gt; FilePath -&gt; Bool
forall a. Eq a =&gt; [a] -&gt; [a] -&gt; Bool
</span><a href="../../base/src/Data.OldList.html#isPrefixOf"><span class="hs-operator hs-var">`isPrefixOf`</span></a></span><span> </span><span class="annot"><span class="annottext">FilePath
</span><a href="#local-6989586621679618801"><span class="hs-identifier hs-var">s</span></a></span><span> </span><span class="hs-special">]</span><span>
</span><span id="line-79"></span><span>    </span><span class="hs-comment">-- NB: order matters! Longer strings first</span><span>
</span><span id="line-80"></span><span>    </span><span class="hs-keyword">where</span><span> </span><span id="local-6989586621679618795"><span class="annot"><span class="annottext">vars :: [(FilePath, PathTemplateVariable)]
</span><a href="#local-6989586621679618795"><span class="hs-identifier hs-var hs-var">vars</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">[</span><span class="hs-special">(</span><span class="annot"><span class="annottext">FilePath
</span><span class="hs-string">&quot;prefix&quot;</span></span><span class="hs-special">,</span><span>     </span><span class="annot"><span class="annottext">PathTemplateVariable
</span><a href="Distribution.Simple.InstallDirs.Internal.html#PrefixVar"><span class="hs-identifier hs-var">PrefixVar</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-81"></span><span>                 </span><span class="hs-special">,</span><span class="hs-special">(</span><span class="annot"><span class="annottext">FilePath
</span><span class="hs-string">&quot;bindir&quot;</span></span><span class="hs-special">,</span><span>     </span><span class="annot"><span class="annottext">PathTemplateVariable
</span><a href="Distribution.Simple.InstallDirs.Internal.html#BindirVar"><span class="hs-identifier hs-var">BindirVar</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-82"></span><span>                 </span><span class="hs-special">,</span><span class="hs-special">(</span><span class="annot"><span class="annottext">FilePath
</span><span class="hs-string">&quot;libdir&quot;</span></span><span class="hs-special">,</span><span>     </span><span class="annot"><span class="annottext">PathTemplateVariable
</span><a href="Distribution.Simple.InstallDirs.Internal.html#LibdirVar"><span class="hs-identifier hs-var">LibdirVar</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-83"></span><span>                 </span><span class="hs-special">,</span><span class="hs-special">(</span><span class="annot"><span class="annottext">FilePath
</span><span class="hs-string">&quot;libsubdir&quot;</span></span><span class="hs-special">,</span><span>  </span><span class="annot"><span class="annottext">PathTemplateVariable
</span><a href="Distribution.Simple.InstallDirs.Internal.html#LibsubdirVar"><span class="hs-identifier hs-var">LibsubdirVar</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-84"></span><span>                 </span><span class="hs-special">,</span><span class="hs-special">(</span><span class="annot"><span class="annottext">FilePath
</span><span class="hs-string">&quot;dynlibdir&quot;</span></span><span class="hs-special">,</span><span>  </span><span class="annot"><span class="annottext">PathTemplateVariable
</span><a href="Distribution.Simple.InstallDirs.Internal.html#DynlibdirVar"><span class="hs-identifier hs-var">DynlibdirVar</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-85"></span><span>                 </span><span class="hs-special">,</span><span class="hs-special">(</span><span class="annot"><span class="annottext">FilePath
</span><span class="hs-string">&quot;datadir&quot;</span></span><span class="hs-special">,</span><span>    </span><span class="annot"><span class="annottext">PathTemplateVariable
</span><a href="Distribution.Simple.InstallDirs.Internal.html#DatadirVar"><span class="hs-identifier hs-var">DatadirVar</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-86"></span><span>                 </span><span class="hs-special">,</span><span class="hs-special">(</span><span class="annot"><span class="annottext">FilePath
</span><span class="hs-string">&quot;datasubdir&quot;</span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">PathTemplateVariable
</span><a href="Distribution.Simple.InstallDirs.Internal.html#DatasubdirVar"><span class="hs-identifier hs-var">DatasubdirVar</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-87"></span><span>                 </span><span class="hs-special">,</span><span class="hs-special">(</span><span class="annot"><span class="annottext">FilePath
</span><span class="hs-string">&quot;docdir&quot;</span></span><span class="hs-special">,</span><span>     </span><span class="annot"><span class="annottext">PathTemplateVariable
</span><a href="Distribution.Simple.InstallDirs.Internal.html#DocdirVar"><span class="hs-identifier hs-var">DocdirVar</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-88"></span><span>                 </span><span class="hs-special">,</span><span class="hs-special">(</span><span class="annot"><span class="annottext">FilePath
</span><span class="hs-string">&quot;htmldir&quot;</span></span><span class="hs-special">,</span><span>    </span><span class="annot"><span class="annottext">PathTemplateVariable
</span><a href="Distribution.Simple.InstallDirs.Internal.html#HtmldirVar"><span class="hs-identifier hs-var">HtmldirVar</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-89"></span><span>                 </span><span class="hs-special">,</span><span class="hs-special">(</span><span class="annot"><span class="annottext">FilePath
</span><span class="hs-string">&quot;pkgid&quot;</span></span><span class="hs-special">,</span><span>      </span><span class="annot"><span class="annottext">PathTemplateVariable
</span><a href="Distribution.Simple.InstallDirs.Internal.html#PkgIdVar"><span class="hs-identifier hs-var">PkgIdVar</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-90"></span><span>                 </span><span class="hs-special">,</span><span class="hs-special">(</span><span class="annot"><span class="annottext">FilePath
</span><span class="hs-string">&quot;libname&quot;</span></span><span class="hs-special">,</span><span>    </span><span class="annot"><span class="annottext">PathTemplateVariable
</span><a href="Distribution.Simple.InstallDirs.Internal.html#LibNameVar"><span class="hs-identifier hs-var">LibNameVar</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-91"></span><span>                 </span><span class="hs-special">,</span><span class="hs-special">(</span><span class="annot"><span class="annottext">FilePath
</span><span class="hs-string">&quot;pkgkey&quot;</span></span><span class="hs-special">,</span><span>     </span><span class="annot"><span class="annottext">PathTemplateVariable
</span><a href="Distribution.Simple.InstallDirs.Internal.html#LibNameVar"><span class="hs-identifier hs-var">LibNameVar</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-comment">-- backwards compatibility</span><span>
</span><span id="line-92"></span><span>                 </span><span class="hs-special">,</span><span class="hs-special">(</span><span class="annot"><span class="annottext">FilePath
</span><span class="hs-string">&quot;pkg&quot;</span></span><span class="hs-special">,</span><span>        </span><span class="annot"><span class="annottext">PathTemplateVariable
</span><a href="Distribution.Simple.InstallDirs.Internal.html#PkgNameVar"><span class="hs-identifier hs-var">PkgNameVar</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-93"></span><span>                 </span><span class="hs-special">,</span><span class="hs-special">(</span><span class="annot"><span class="annottext">FilePath
</span><span class="hs-string">&quot;version&quot;</span></span><span class="hs-special">,</span><span>    </span><span class="annot"><span class="annottext">PathTemplateVariable
</span><a href="Distribution.Simple.InstallDirs.Internal.html#PkgVerVar"><span class="hs-identifier hs-var">PkgVerVar</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-94"></span><span>                 </span><span class="hs-special">,</span><span class="hs-special">(</span><span class="annot"><span class="annottext">FilePath
</span><span class="hs-string">&quot;compiler&quot;</span></span><span class="hs-special">,</span><span>   </span><span class="annot"><span class="annottext">PathTemplateVariable
</span><a href="Distribution.Simple.InstallDirs.Internal.html#CompilerVar"><span class="hs-identifier hs-var">CompilerVar</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-95"></span><span>                 </span><span class="hs-special">,</span><span class="hs-special">(</span><span class="annot"><span class="annottext">FilePath
</span><span class="hs-string">&quot;os&quot;</span></span><span class="hs-special">,</span><span>         </span><span class="annot"><span class="annottext">PathTemplateVariable
</span><a href="Distribution.Simple.InstallDirs.Internal.html#OSVar"><span class="hs-identifier hs-var">OSVar</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-96"></span><span>                 </span><span class="hs-special">,</span><span class="hs-special">(</span><span class="annot"><span class="annottext">FilePath
</span><span class="hs-string">&quot;arch&quot;</span></span><span class="hs-special">,</span><span>       </span><span class="annot"><span class="annottext">PathTemplateVariable
</span><a href="Distribution.Simple.InstallDirs.Internal.html#ArchVar"><span class="hs-identifier hs-var">ArchVar</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-97"></span><span>                 </span><span class="hs-special">,</span><span class="hs-special">(</span><span class="annot"><span class="annottext">FilePath
</span><span class="hs-string">&quot;abitag&quot;</span></span><span class="hs-special">,</span><span>     </span><span class="annot"><span class="annottext">PathTemplateVariable
</span><a href="Distribution.Simple.InstallDirs.Internal.html#AbiTagVar"><span class="hs-identifier hs-var">AbiTagVar</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-98"></span><span>                 </span><span class="hs-special">,</span><span class="hs-special">(</span><span class="annot"><span class="annottext">FilePath
</span><span class="hs-string">&quot;abi&quot;</span></span><span class="hs-special">,</span><span>        </span><span class="annot"><span class="annottext">PathTemplateVariable
</span><a href="Distribution.Simple.InstallDirs.Internal.html#AbiVar"><span class="hs-identifier hs-var">AbiVar</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-99"></span><span>                 </span><span class="hs-special">,</span><span class="hs-special">(</span><span class="annot"><span class="annottext">FilePath
</span><span class="hs-string">&quot;executablename&quot;</span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">PathTemplateVariable
</span><a href="Distribution.Simple.InstallDirs.Internal.html#ExecutableNameVar"><span class="hs-identifier hs-var">ExecutableNameVar</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-100"></span><span>                 </span><span class="hs-special">,</span><span class="hs-special">(</span><span class="annot"><span class="annottext">FilePath
</span><span class="hs-string">&quot;test-suite&quot;</span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">PathTemplateVariable
</span><a href="Distribution.Simple.InstallDirs.Internal.html#TestSuiteNameVar"><span class="hs-identifier hs-var">TestSuiteNameVar</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-101"></span><span>                 </span><span class="hs-special">,</span><span class="hs-special">(</span><span class="annot"><span class="annottext">FilePath
</span><span class="hs-string">&quot;result&quot;</span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">PathTemplateVariable
</span><a href="Distribution.Simple.InstallDirs.Internal.html#TestSuiteResultVar"><span class="hs-identifier hs-var">TestSuiteResultVar</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-102"></span><span>                 </span><span class="hs-special">,</span><span class="hs-special">(</span><span class="annot"><span class="annottext">FilePath
</span><span class="hs-string">&quot;benchmark&quot;</span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">PathTemplateVariable
</span><a href="Distribution.Simple.InstallDirs.Internal.html#BenchmarkNameVar"><span class="hs-identifier hs-var">BenchmarkNameVar</span></a></span><span class="hs-special">)</span><span class="hs-special">]</span><span>
</span><span id="line-103"></span><span>
</span><span id="line-104"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679618792"><span class="annot"><a href="../../base/src/GHC.Show.html#Show"><span class="hs-identifier hs-type">Show</span></a></span><span> </span><span class="annot"><a href="Distribution.Simple.InstallDirs.Internal.html#PathComponent"><span class="hs-identifier hs-type">PathComponent</span></a></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-105"></span><span>  </span><span id="local-6989586621679618788"><span class="annot"><span class="annottext">show :: PathComponent -&gt; FilePath
</span><a href="#local-6989586621679618788"><span class="hs-identifier hs-var hs-var hs-var hs-var">show</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Distribution.Simple.InstallDirs.Internal.html#Ordinary"><span class="hs-identifier hs-type">Ordinary</span></a></span><span> </span><span id="local-6989586621679618787"><span class="annot"><span class="annottext">FilePath
</span><a href="#local-6989586621679618787"><span class="hs-identifier hs-var">path</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">FilePath
</span><a href="#local-6989586621679618787"><span class="hs-identifier hs-var">path</span></a></span><span>
</span><span id="line-106"></span><span>  </span><span class="annot"><a href="../../base/src/GHC.Show.html#show"><span class="hs-identifier hs-var">show</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Distribution.Simple.InstallDirs.Internal.html#Variable"><span class="hs-identifier hs-type">Variable</span></a></span><span> </span><span id="local-6989586621679618786"><span class="annot"><span class="annottext">PathTemplateVariable
</span><a href="#local-6989586621679618786"><span class="hs-identifier hs-var">var</span></a></span></span><span class="hs-special">)</span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Char
</span><span class="hs-char">'$'</span></span><span class="annot"><span class="annottext">Char -&gt; ShowS
forall a. a -&gt; [a] -&gt; [a]
</span><span class="hs-glyph hs-var">:</span></span><span class="annot"><span class="annottext">PathTemplateVariable -&gt; FilePath
forall a. Show a =&gt; a -&gt; FilePath
</span><a href="../../base/src/GHC.Show.html#show"><span class="hs-identifier hs-var">show</span></a></span><span> </span><span class="annot"><span class="annottext">PathTemplateVariable
</span><a href="#local-6989586621679618786"><span class="hs-identifier hs-var">var</span></a></span><span>
</span><span id="line-107"></span><span>  </span><span id="local-6989586621679618783"><span class="annot"><span class="annottext">showList :: [PathComponent] -&gt; ShowS
</span><a href="../../base/src/GHC.Show.html#showList"><span class="hs-identifier hs-var hs-var hs-var hs-var">showList</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(PathComponent -&gt; ShowS -&gt; ShowS)
-&gt; ShowS -&gt; [PathComponent] -&gt; ShowS
forall (t :: * -&gt; *) a b.
Foldable t =&gt;
(a -&gt; b -&gt; b) -&gt; b -&gt; t a -&gt; b
</span><a href="../../base/src/Data.Foldable.html#foldr"><span class="hs-identifier hs-var">foldr</span></a></span><span> </span><span class="hs-special">(</span><span class="hs-glyph">\</span><span id="local-6989586621679618780"><span class="annot"><span class="annottext">PathComponent
</span><a href="#local-6989586621679618780"><span class="hs-identifier hs-var">x</span></a></span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">PathComponent -&gt; ShowS
forall a. Show a =&gt; a -&gt; ShowS
</span><a href="../../base/src/GHC.Show.html#shows"><span class="hs-identifier hs-var">shows</span></a></span><span> </span><span class="annot"><span class="annottext">PathComponent
</span><a href="#local-6989586621679618780"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">ShowS -&gt; ShowS -&gt; ShowS
forall b c a. (b -&gt; c) -&gt; (a -&gt; b) -&gt; a -&gt; c
</span><a href="../../base/src/GHC.Base.html#."><span class="hs-operator hs-var">.</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">ShowS
forall a. a -&gt; a
</span><a href="../../base/src/GHC.Base.html#id"><span class="hs-identifier hs-var">id</span></a></span><span>
</span><span id="line-108"></span><span>
</span><span id="line-109"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679618771"><span id="local-6989586621679618773"><span class="annot"><a href="../../base/src/GHC.Read.html#Read"><span class="hs-identifier hs-type">Read</span></a></span><span> </span><span class="annot"><a href="Distribution.Simple.InstallDirs.Internal.html#PathComponent"><span class="hs-identifier hs-type">PathComponent</span></a></span></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-110"></span><span>  </span><span class="hs-comment">-- for some reason we collapse multiple $ symbols here</span><span>
</span><span id="line-111"></span><span>  </span><span id="local-6989586621679618770"><span class="annot"><span class="annottext">readsPrec :: Int -&gt; ReadS PathComponent
</span><a href="#local-6989586621679618770"><span class="hs-identifier hs-var hs-var hs-var hs-var">readsPrec</span></a></span></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ReadS PathComponent
</span><a href="#local-6989586621679618769"><span class="hs-identifier hs-var">lex0</span></a></span><span>
</span><span id="line-112"></span><span>    </span><span class="hs-keyword">where</span><span> </span><span id="local-6989586621679618769"><span class="annot"><span class="annottext">lex0 :: ReadS PathComponent
</span><a href="#local-6989586621679618769"><span class="hs-identifier hs-var hs-var">lex0</span></a></span></span><span> </span><span class="hs-special">[</span><span class="hs-special">]</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">[</span><span class="hs-special">]</span><span>
</span><span id="line-113"></span><span>          </span><span class="annot"><a href="#local-6989586621679618769"><span class="hs-identifier hs-var">lex0</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Char
</span><span class="hs-char">'$'</span></span><span class="annot"><span class="hs-glyph hs-type">:</span></span><span class="annot"><span class="annottext">Char
</span><span class="hs-char">'$'</span></span><span class="annot"><span class="hs-glyph hs-type">:</span></span><span id="local-6989586621679618767"><span class="annot"><span class="annottext">FilePath
</span><a href="#local-6989586621679618767"><span class="hs-identifier hs-var">s'</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ReadS PathComponent
</span><a href="#local-6989586621679618769"><span class="hs-identifier hs-var">lex0</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Char
</span><span class="hs-char">'$'</span></span><span class="annot"><span class="annottext">Char -&gt; ShowS
forall a. a -&gt; [a] -&gt; [a]
</span><span class="hs-glyph hs-var">:</span></span><span class="annot"><span class="annottext">FilePath
</span><a href="#local-6989586621679618767"><span class="hs-identifier hs-var">s'</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-114"></span><span>          </span><span class="annot"><a href="#local-6989586621679618769"><span class="hs-identifier hs-var">lex0</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Char
</span><span class="hs-char">'$'</span></span><span class="annot"><span class="hs-glyph hs-type">:</span></span><span id="local-6989586621679618766"><span class="annot"><span class="annottext">FilePath
</span><a href="#local-6989586621679618766"><span class="hs-identifier hs-var">s'</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">case</span><span> </span><span class="hs-special">[</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">PathTemplateVariable -&gt; PathComponent
</span><a href="Distribution.Simple.InstallDirs.Internal.html#Variable"><span class="hs-identifier hs-var">Variable</span></a></span><span> </span><span class="annot"><span class="annottext">PathTemplateVariable
</span><a href="#local-6989586621679618765"><span class="hs-identifier hs-var">var</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">FilePath
</span><a href="#local-6989586621679618764"><span class="hs-identifier hs-var">s''</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-115"></span><span>                               </span><span class="hs-glyph">|</span><span> </span><span class="hs-special">(</span><span id="local-6989586621679618765"><span class="annot"><span class="annottext">PathTemplateVariable
</span><a href="#local-6989586621679618765"><span class="hs-identifier hs-var">var</span></a></span></span><span class="hs-special">,</span><span> </span><span id="local-6989586621679618764"><span class="annot"><span class="annottext">FilePath
</span><a href="#local-6989586621679618764"><span class="hs-identifier hs-var">s''</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">ReadS PathTemplateVariable
forall a. Read a =&gt; ReadS a
</span><a href="../../base/src/Text.Read.html#reads"><span class="hs-identifier hs-var">reads</span></a></span><span> </span><span class="annot"><span class="annottext">FilePath
</span><a href="#local-6989586621679618766"><span class="hs-identifier hs-var">s'</span></a></span><span> </span><span class="hs-special">]</span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-116"></span><span>                            </span><span class="hs-special">[</span><span class="hs-special">]</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">FilePath -&gt; ReadS PathComponent
</span><a href="#local-6989586621679618762"><span class="hs-identifier hs-var">lex1</span></a></span><span> </span><span class="annot"><span class="annottext">FilePath
</span><span class="hs-string">&quot;$&quot;</span></span><span> </span><span class="annot"><span class="annottext">FilePath
</span><a href="#local-6989586621679618766"><span class="hs-identifier hs-var">s'</span></a></span><span>
</span><span id="line-117"></span><span>                            </span><span id="local-6989586621679618761"><span class="annot"><span class="annottext">[(PathComponent, FilePath)]
</span><a href="#local-6989586621679618761"><span class="hs-identifier hs-var">ok</span></a></span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">[(PathComponent, FilePath)]
</span><a href="#local-6989586621679618761"><span class="hs-identifier hs-var">ok</span></a></span><span>
</span><span id="line-118"></span><span>          </span><span class="annot"><a href="#local-6989586621679618769"><span class="hs-identifier hs-var">lex0</span></a></span><span> </span><span id="local-6989586621679618760"><span class="annot"><span class="annottext">FilePath
</span><a href="#local-6989586621679618760"><span class="hs-identifier hs-var">s'</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">FilePath -&gt; ReadS PathComponent
</span><a href="#local-6989586621679618762"><span class="hs-identifier hs-var">lex1</span></a></span><span> </span><span class="hs-special">[</span><span class="hs-special">]</span><span> </span><span class="annot"><span class="annottext">FilePath
</span><a href="#local-6989586621679618760"><span class="hs-identifier hs-var">s'</span></a></span><span>
</span><span id="line-119"></span><span>          </span><span id="local-6989586621679618762"><span class="annot"><span class="annottext">lex1 :: FilePath -&gt; ReadS PathComponent
</span><a href="#local-6989586621679618762"><span class="hs-identifier hs-var hs-var">lex1</span></a></span></span><span> </span><span class="annot"><span class="annottext">FilePath
</span><span class="hs-string">&quot;&quot;</span></span><span>  </span><span class="annot"><span class="annottext">FilePath
</span><span class="hs-string">&quot;&quot;</span></span><span>      </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">[</span><span class="hs-special">]</span><span>
</span><span id="line-120"></span><span>          </span><span class="annot"><a href="#local-6989586621679618762"><span class="hs-identifier hs-var">lex1</span></a></span><span> </span><span id="local-6989586621679618759"><span class="annot"><span class="annottext">FilePath
</span><a href="#local-6989586621679618759"><span class="hs-identifier hs-var">acc</span></a></span></span><span> </span><span class="annot"><span class="annottext">FilePath
</span><span class="hs-string">&quot;&quot;</span></span><span>      </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">[</span><span class="hs-special">(</span><span class="annot"><span class="annottext">FilePath -&gt; PathComponent
</span><a href="Distribution.Simple.InstallDirs.Internal.html#Ordinary"><span class="hs-identifier hs-var">Ordinary</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">ShowS
forall a. [a] -&gt; [a]
</span><a href="../../base/src/GHC.List.html#reverse"><span class="hs-identifier hs-var">reverse</span></a></span><span> </span><span class="annot"><span class="annottext">FilePath
</span><a href="#local-6989586621679618759"><span class="hs-identifier hs-var">acc</span></a></span><span class="hs-special">)</span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">FilePath
</span><span class="hs-string">&quot;&quot;</span></span><span class="hs-special">)</span><span class="hs-special">]</span><span>
</span><span id="line-121"></span><span>          </span><span class="annot"><a href="#local-6989586621679618762"><span class="hs-identifier hs-var">lex1</span></a></span><span> </span><span id="local-6989586621679618757"><span class="annot"><span class="annottext">FilePath
</span><a href="#local-6989586621679618757"><span class="hs-identifier hs-var">acc</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Char
</span><span class="hs-char">'$'</span></span><span class="annot"><span class="hs-glyph hs-type">:</span></span><span class="annot"><span class="annottext">Char
</span><span class="hs-char">'$'</span></span><span class="annot"><span class="hs-glyph hs-type">:</span></span><span id="local-6989586621679618756"><span class="annot"><span class="annottext">FilePath
</span><a href="#local-6989586621679618756"><span class="hs-identifier hs-var">s</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">FilePath -&gt; ReadS PathComponent
</span><a href="#local-6989586621679618762"><span class="hs-identifier hs-var">lex1</span></a></span><span> </span><span class="annot"><span class="annottext">FilePath
</span><a href="#local-6989586621679618757"><span class="hs-identifier hs-var">acc</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Char
</span><span class="hs-char">'$'</span></span><span class="annot"><span class="annottext">Char -&gt; ShowS
forall a. a -&gt; [a] -&gt; [a]
</span><span class="hs-glyph hs-var">:</span></span><span class="annot"><span class="annottext">FilePath
</span><a href="#local-6989586621679618756"><span class="hs-identifier hs-var">s</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-122"></span><span>          </span><span class="annot"><a href="#local-6989586621679618762"><span class="hs-identifier hs-var">lex1</span></a></span><span> </span><span id="local-6989586621679618755"><span class="annot"><span class="annottext">FilePath
</span><a href="#local-6989586621679618755"><span class="hs-identifier hs-var">acc</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Char
</span><span class="hs-char">'$'</span></span><span class="annot"><span class="hs-glyph hs-type">:</span></span><span id="local-6989586621679618754"><span class="annot"><span class="annottext">FilePath
</span><a href="#local-6989586621679618754"><span class="hs-identifier hs-var">s</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">[</span><span class="hs-special">(</span><span class="annot"><span class="annottext">FilePath -&gt; PathComponent
</span><a href="Distribution.Simple.InstallDirs.Internal.html#Ordinary"><span class="hs-identifier hs-var">Ordinary</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">ShowS
forall a. [a] -&gt; [a]
</span><a href="../../base/src/GHC.List.html#reverse"><span class="hs-identifier hs-var">reverse</span></a></span><span> </span><span class="annot"><span class="annottext">FilePath
</span><a href="#local-6989586621679618755"><span class="hs-identifier hs-var">acc</span></a></span><span class="hs-special">)</span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">Char
</span><span class="hs-char">'$'</span></span><span class="annot"><span class="annottext">Char -&gt; ShowS
forall a. a -&gt; [a] -&gt; [a]
</span><span class="hs-glyph hs-var">:</span></span><span class="annot"><span class="annottext">FilePath
</span><a href="#local-6989586621679618754"><span class="hs-identifier hs-var">s</span></a></span><span class="hs-special">)</span><span class="hs-special">]</span><span>
</span><span id="line-123"></span><span>          </span><span class="annot"><a href="#local-6989586621679618762"><span class="hs-identifier hs-var">lex1</span></a></span><span> </span><span id="local-6989586621679618753"><span class="annot"><span class="annottext">FilePath
</span><a href="#local-6989586621679618753"><span class="hs-identifier hs-var">acc</span></a></span></span><span> </span><span class="hs-special">(</span><span id="local-6989586621679618752"><span class="annot"><span class="annottext">Char
</span><a href="#local-6989586621679618752"><span class="hs-identifier hs-var">c</span></a></span></span><span class="annot"><span class="hs-glyph hs-type">:</span></span><span id="local-6989586621679618751"><span class="annot"><span class="annottext">FilePath
</span><a href="#local-6989586621679618751"><span class="hs-identifier hs-var">s</span></a></span></span><span class="hs-special">)</span><span>   </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">FilePath -&gt; ReadS PathComponent
</span><a href="#local-6989586621679618762"><span class="hs-identifier hs-var">lex1</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Char
</span><a href="#local-6989586621679618752"><span class="hs-identifier hs-var">c</span></a></span><span class="annot"><span class="annottext">Char -&gt; ShowS
forall a. a -&gt; [a] -&gt; [a]
</span><span class="hs-glyph hs-var">:</span></span><span class="annot"><span class="annottext">FilePath
</span><a href="#local-6989586621679618753"><span class="hs-identifier hs-var">acc</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">FilePath
</span><a href="#local-6989586621679618751"><span class="hs-identifier hs-var">s</span></a></span><span>
</span><span id="line-124"></span><span>  </span><span id="local-6989586621679618748"><span class="annot"><span class="annottext">readList :: ReadS [PathComponent]
</span><a href="../../base/src/GHC.Read.html#readList"><span class="hs-identifier hs-var hs-var hs-var hs-var">readList</span></a></span></span><span> </span><span class="hs-special">[</span><span class="hs-special">]</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">[</span><span class="hs-special">(</span><span class="hs-special">[</span><span class="hs-special">]</span><span class="hs-special">,</span><span class="annot"><span class="annottext">FilePath
</span><span class="hs-string">&quot;&quot;</span></span><span class="hs-special">)</span><span class="hs-special">]</span><span>
</span><span id="line-125"></span><span>  </span><span class="annot"><a href="../../base/src/GHC.Read.html#readList"><span class="hs-identifier hs-var">readList</span></a></span><span> </span><span id="local-6989586621679618746"><span class="annot"><span class="annottext">FilePath
</span><a href="#local-6989586621679618746"><span class="hs-identifier hs-var">s</span></a></span></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">[</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">PathComponent
</span><a href="#local-6989586621679618745"><span class="hs-identifier hs-var">component</span></a></span><span class="annot"><span class="annottext">PathComponent -&gt; [PathComponent] -&gt; [PathComponent]
forall a. a -&gt; [a] -&gt; [a]
</span><span class="hs-glyph hs-var">:</span></span><span class="annot"><span class="annottext">[PathComponent]
</span><a href="#local-6989586621679618744"><span class="hs-identifier hs-var">components</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">FilePath
</span><a href="#local-6989586621679618743"><span class="hs-identifier hs-var">s''</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-126"></span><span>                </span><span class="hs-glyph">|</span><span> </span><span class="hs-special">(</span><span id="local-6989586621679618745"><span class="annot"><span class="annottext">PathComponent
</span><a href="#local-6989586621679618745"><span class="hs-identifier hs-var">component</span></a></span></span><span class="hs-special">,</span><span> </span><span id="local-6989586621679618742"><span class="annot"><span class="annottext">FilePath
</span><a href="#local-6989586621679618742"><span class="hs-identifier hs-var">s'</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">ReadS PathComponent
forall a. Read a =&gt; ReadS a
</span><a href="../../base/src/Text.Read.html#reads"><span class="hs-identifier hs-var">reads</span></a></span><span> </span><span class="annot"><span class="annottext">FilePath
</span><a href="#local-6989586621679618746"><span class="hs-identifier hs-var">s</span></a></span><span>
</span><span id="line-127"></span><span>                </span><span class="hs-special">,</span><span> </span><span class="hs-special">(</span><span id="local-6989586621679618744"><span class="annot"><span class="annottext">[PathComponent]
</span><a href="#local-6989586621679618744"><span class="hs-identifier hs-var">components</span></a></span></span><span class="hs-special">,</span><span> </span><span id="local-6989586621679618743"><span class="annot"><span class="annottext">FilePath
</span><a href="#local-6989586621679618743"><span class="hs-identifier hs-var">s''</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">ReadS [PathComponent]
forall a. Read a =&gt; ReadS [a]
</span><a href="../../base/src/GHC.Read.html#readList"><span class="hs-identifier hs-var">readList</span></a></span><span> </span><span class="annot"><span class="annottext">FilePath
</span><a href="#local-6989586621679618742"><span class="hs-identifier hs-var">s'</span></a></span><span> </span><span class="hs-special">]</span><span>
</span><span id="line-128"></span></pre></body></html>